package com.example.exceldemo.enuns;


/**
 * @Description 文件类型枚举
 * @Author xiaohuang
 * @Date 2024/7/29
 */

public enum SheetType {
    VERTICALLY_MERGE_CELLS("纵向合并单元格"),
    HEAD_MERGES_CELLS_VERTICALLY("表头合并+纵向合并单元格"),
    PORTRAIT_ROW_MERGE_CELLS("纵向+行合并单元格"),
    SIMPLE_DERIVATION("简单导出");

    private final String desc;
    SheetType( String desc) {
        this.desc = desc;
    }
    public String getDesc() {
        return desc;
    }
    public static SheetType getByDesc(String desc){
        SheetType[] values = values();
        for (SheetType value : values) {
            if (value.getDesc().equals(desc))
                return value;
        }
        return null;
    }


}
